package com.chapter.sample.jvm.heap;

public class HeapSpaceIntial {
    public static void main(String[] args) {
        //初始
        long initialMemory = Runtime.getRuntime().totalMemory() / 1024 / 1024;

        //最大
        long maxMemory = Runtime.getRuntime().maxMemory() / 1024 / 1024;

        System.out.println("-Xms：" + initialMemory + "M");
        System.out.println("-Xmx：" + maxMemory + "M");

    }
}
